package cn.newhopedairy.payment.api;

import cn.newhopedairy.payment.command.PayInfoCmd;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;

/**
 * @author Neo.Li
 * @date 2020-10-0411:22
 */
@Api(tags = "支付API")
public interface PayApi {

    /**
     * 支付
     *
     * @param payInfoCmd 支付信息
     * @return 支付成功/失败
     */
    @ApiOperation("支付")
    @PostMapping("/pay")
    boolean pay(PayInfoCmd payInfoCmd);
}
